package com.freesun.shop.config;

import com.github.qcloudsms.SmsSingleSender;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class TengXunSmsConfig {
    // 短信应用 SDK AppID
    int appid = 1400281498; // SDK AppID 以1400开头
    // 短信应用 SDK AppKey
    String appkey = "e08a8f08cf7ae74a28f5307b9fa9c034";


    @Bean
    public SmsSingleSender smsSingleSender(){
        SmsSingleSender sender = new SmsSingleSender(appid, appkey);
        return sender;
    }

}
